<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'emp_add.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="css/emp_add.css">
<link href="css/sunny/jquery-ui-1.10.2.custom.css" rel="stylesheet">
<script src="js/jquery/jquery-1.9.1.js"></script>
<script src="js/jquery/jquery-ui-i18n.js"></script>
<script src="js/jquery/jquery-ui-1.10.2.custom.js"></script>
<script language="JavaScript" type="text/javascript" src="js/emp_add.js"></script>
<script>
	$(function() {
		$("#datepicker").datepicker({
			changeYear : true,
			dateFormat :  'yy-mm-dd'
		});
		
	});
</script>
</head>
<body>
	<h3>员工信息修改</h3>
	<div id="container">
		<form id="fm-form" method="post"
			action="employeeAction!addEmployee.action">
			<fieldset>
				<legend>个人信息</legend>
				<div class="fm-req">
					<label for="fm-firstname">员工编号</label> 
						<input name="employee.emp_num" id="fm-firstname" value='<s:property value="employee.emp_num" />' type="text" />
				</div>
				<div class="fm-req">
					<label for="fm-firstname">员工姓名</label> <input value='<s:property value="employee.emp_name" />'
						name="employee.emp_name" id="fm-firstname" type="text">
				</div>
				<div class="fm-req">
					<label for="fm-firstname">性别</label> <select id="fm-state"
						name="employee.emp_sex">
						<option value="男" selected="selected">男</option>
						<option value="女">女</option>
					</select>
				</div>
				<div class="fm-req">
					<label for="fm-firstname">出生日期</label> 
						<input type="text" id="datepicker" name="employee.emp_birth" id="fm-firstname" type="text" value='<s:property value="employee.emp_birth"/>'>
				</div>
				<div class="fm-req">
					<label for="fm-firstname">学历</label> <input name="employee.emp_edu"
						value='<s:property value="employee.emp_edu"/>' id="fm-firstname" type="text">
				</div>
			</fieldset>
			<fieldset>
				<legend>工作信息</legend>
				<div class="fm-req">
					<label for="fm-firstname">部门</label> <input
						value='<s:property value="employee.emp_dept_id"/>' name="employee.emp_dept_id" id="fm-firstname" type="text">
				</div>
				<div class="fm-req">
					<label for="fm-firstname">职务</label> <input
						value='<s:property value="employee.emp_job_id"/>' name="employee.emp_job_id" id="fm-firstname" type="text">
				</div>
			</fieldset>
			<fieldset>
				<legend>联系方式</legend>
				<div class="fm-opt">
					<label for="fm-addr">电话</label> <input id="fm-addr"
						value='<s:property value="employee.emp_tel"/>' name="employee.emp_tel" type="text">
				</div>
				<div class="fm-opt">
					<label for="fm-city">住址</label>
					<textarea name="employee.emp_address" cols="10" rows="5"
						id="fm-comments"><s:property value="employee.emp_addres" /></textarea>
				</div>

			</fieldset>

			<div id="fm-submit" class="fm-req">
				<input name="Submit" value="&#25552; &#20132;" type="submit">
			</div>
			<br>
		</form>
	</div>
</body>
</html>
